package com.bdqn.t296.noso.service.Imp;

import com.bdqn.t296.noso.entity.CCashier;
import com.bdqn.t296.noso.mapper.PaymentMapper;
import com.bdqn.t296.noso.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PaymentServiceImp implements PaymentService {
    @Resource
    PaymentMapper paymentMapper;
    //查询用户所有的项目然后
    @Override
    public List<CCashier> selxiang(Integer perid) {
        return paymentMapper.selxiang(perid);
    }
    //查询该用户有没有收费项目
    @Override
    public Integer selshoux(Integer perid) {
        return paymentMapper.selshoux(perid);
    }
    //项目收费修改项目的收费状态
    @Override
    public Integer updxiang(Integer perid) {
        return paymentMapper.updxiang(perid);
    }
    //项目检查页面查询用户所有要检查的项目
    @Override
    public List<CCashier> selcha(Integer perid) {
        return paymentMapper.selcha(perid);
    }
    //添加项目的检查结果
    @Override
    public Integer addjie(CCashier cCashier) {
        return paymentMapper.addjie(cCashier);
    }
}
